import request from '@/utils/request';
import {clientUrl} from "@/common/service-prefix";

export interface ArticleParams {
  title: string;
  content: string;
  categoryId: string;
  author: string;
  stateFlag: string;
}

export async function getPage(params: ArticleParams) {
  return request(`${clientUrl}/home/articleList`, {
    method: 'GET',
    params: params,
  });
}
